package com.quanquan.resource.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "oo_image")
@Data
public class Image implements Serializable {

    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 图片地址
     */
    @Column(name = "image_address", nullable = false, length = 225)
    private String imageAddress;

    /**
     * 图片上传时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 最新修改时间
     */
    @Column(name = "update_time", nullable = false, length = 32)
    private String updateTime;


    /**
     * 关联外键ID（各个模块的主键）
     */
    @Column(name = "foreign_key_Id", length = 64)
    private String foreignKeyId;

    /**
     * 数据是否显示
     */
    @Column(name = "status_show", columnDefinition = "TINYINT DEFAULT 0",nullable = false)
    private Integer show;

    /**
     * 数据是否移除
     */
    @Column(name = "status_remove", columnDefinition = "TINYINT DEFAULT 0",nullable = false)
    private Integer remove;


    /**
     * 是否分面 0 否 1 是
     */
    @Column(name = "cover", columnDefinition = "TINYINT DEFAULT 0",nullable = false)
    private Integer cover;


    /**
     * 是否logo 0 否 1 是
     */
    @Column(name = "logo", columnDefinition = "TINYINT DEFAULT 0",nullable = false)
    private Integer logo;

    /**
     * 是否招牌 0 否 1 是
     */
    @Column(name = "sign", columnDefinition = "TINYINT DEFAULT 0",nullable = false)
    private Integer sign;

    /**
     * 归属来源
     */
    @Column(name = "belong",length = 32)
    private String belong;




}
